package router

import (
	"github.com/gin-gonic/gin"
	"github.com/robfig/cron/v3"
	"tao-admin/internal/api/duty_info"
	"tao-admin/internal/api/todo_plan"
	"tao-admin/internal/api/version_info"
)

func InitApps(e *gin.Engine) {
	//分模块注册
	initVersion(e)
	//initDuty(e)
	//...
}

func initVersion(e *gin.Engine) {
	version_info.ViewInit(e)
}

func InitCron(c *cron.Cron) {
	todo_plan.PlanCronInit(c)
	duty_info.DutyCronInit(c)
}
